import { req } from '@/utils/request'

// 工程得分
export const gatherEngineerScore = data => req.get('/trd/qcmerge/gatherEngineerScore', data)
// 导出工程得分
export const exportEngineerScore = data => req.get('/trd/qcmerge/exportEngineerScore', data, { responseType: 'arraybuffer' })

// 品质管理考核得分
export const gatherQualityScore = data => req.get('/trd/qcmerge/gatherQualityScore', data)
// 导出品质得分
export const exportQualityScore = data => req.get('/trd/qcmerge/exportQualityScore', data, { responseType: 'arraybuffer' })
// 品质得分计算
export const calcQualityScore = data => req.post('/trd/qcmerge/calcQualityScore', data, { timeout: 6e4 })

// 项目检查列表
export const pageScores = data => req.get('/trd/qcmerge/pageScores', data, { timeout: 3e5 })
// 检查项树形
export const selectChkitemTree = data => req.get('/trd/engineer/selectChkitemTree', data)
// 导出项目检查表
export const exportPageScores = data => req.get('/trd/engineer/exportReport', data, { responseType: 'arraybuffer', timeout: 3e5 })
